package com.chatplus.application.web.api.common;

import com.chatplus.application.json.Int64AsString;
import com.chatplus.application.web.common.AbstractModel;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;

import javax.validation.constraints.NotNull;

public abstract class AbstractIntegerIdModel extends AbstractModel {
    @JsonSerialize(using = Int64AsString.class)
    @NotNull
    private Long id;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
}
